home *** CD-ROM | disk | FTP | other *** search
- <?xml version='1.0' encoding='EUC-KR' ?>
- <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
- <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
- <!-- English Revision: 1.1.2.8 -->
-
- <!--
- Copyright 2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
- <manualpage metafile="rotatelogs.xml.meta">
- <parentdocument href="./">Programs</parentdocument>
-
- <title>rotatelogs - ╛╞╞──í ╖╬▒╫╕ª ╝°╚»╟╧▒Γ└º╟╪ ╞─└╠╟┴╖╬ ┐¼░ß╟╥
- ╖╬▒╫ ╟┴╖╬▒╫╖Ñ</title>
-
- <summary>
- <p><code>rotatelogs</code>┤┬ ╛╞╞──í└╟ ╞─└╠╟┴ ╖╬▒╫╞─└╧ ▒Γ┤╔└╗
- └º╟╤ ░ú┤▄╟╤ ╟┴╖╬▒╫╖Ñ└╠┤┘. ┐╣╕ª ╡Θ╛ε:</p>
-
- <example>
- CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common
- </example>
-
- <p>▒╫╖»╕Θ /var/logs/logfile.nnnn ╞─└╧└╗ ╕╕╡τ┤┘. nnnn└║
- ╖╬▒╫╕ª ╜├└█╟╤ ╜├╜║┼█╜├░ú└╠┤┘ (└╠ ╜├░ú└║ ╟╫╗≤ ╝°╚»▒Γ░ú└╟
- ╣Φ╝÷└╠┤┘. ▒╫╖í╝¡ cron ╜║┼⌐╕│╞«╖╬ ├│╕«╟╧▒Γ ╜▒┤┘). ╝°╚»▒Γ░ú
- (┐⌐▒Γ╝¡┤┬ 24 ╜├░ú) ╕╢┤┘ ╗⌡╖╬┐ε ╖╬▒╫╕ª ╜├└█╟╤┤┘.</p>
-
- <example>
- CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common
- </example>
-
- <p>└╠ ╝│┴ñ└║ ╖╬▒╫╞─└╧ ┼⌐▒Γ░í 5 ╕▐░í╣┘└╠╞«░í ╡╔╢º╕╢┤┘
- ╝°╚»╟╤┤┘.</p>
-
- <example>
- ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M"
- </example>
- <p>└╠ ╝│┴ñ└║ ┐└╖∙╖╬▒╫ ╞─└╧ ┼⌐▒Γ░í 5 ╕▐░í╣┘└╠╞«░í ╡╔╢º╕╢┤┘
- <code>errorlog.YYYY-mm-dd-HH_MM_SS</code>┐═ ░░└║ ╞─└╧└╗
- ╕╕╡Θ╛ε╝¡ ┐└╖∙╖╬▒╫ ╞─└╧└╗ ╝°╚»╟╤┤┘.</p>
-
- </summary>
-
- <section id="synopsis"><title>░│┐Σ</title>
-
- <p><code><strong>rotatelogs</strong>
- [ -<strong>l</strong> ]
- <var>logfile</var>
- [ <var>rotationtime</var> [ <var>offset</var> ]] |
- [ <var>filesize</var>M ]</code></p>
- </section>
-
- <section id="options"><title>┐╔╝╟</title>
-
- <dl>
-
- <dt><code>-l</code> (<em>2.0.51 └╠╚─</em>)</dt>
- <dd>╝°╚»┴╓▒Γ╖╬ GMT ┤δ╜┼ ┴÷┐¬╜├░ú└╗ ╗τ┐δ╟╤┤┘. (BST│¬ DST┐═ ░░└╠)
- GMT ╜├░ú┬≈░í ║»╟╧┤┬ ╚»░µ┐í╝¡ <code>-l</code>└╗ ╗τ┐δ╟╧╕Θ ┐╣▒Γ─í
- ╛╩└║ ░ß░·░í ╣▀╗²╟╥ ╝÷ └╓┤┘!</dd>
-
- <dt><code><var>logfile</var></code></dt>
-
- <dd>╖╬▒╫╞─└╧└╟ ░µ╖╬┐═ └╠╕º. <var>logfile</var>┐í '%' ╣«└┌░í
- └╓┤┘╕Θ <code>strftime(3)</code>└╟ ╟ⁿ╜─╣«└┌┐¡░· ░░└╠ ├│╕«╟╤┤┘.
- '%' ╣«└┌░í ╛°┤┘╕Θ ╡┌┐í ├╩┤▄└º ╜├░ú <var>.nnnnnnnnnn</var>└╗
- └┌╡┐└╕╖╬ ║┘└╬┤┘. ╡╬ ╟ⁿ╜─ ╕≡╡╬ ╟÷└τ ▒Γ░ú║╬┼═ ╜├└█╜├░ú└╗ ░Φ╗Ω╟╤┤┘.</dd>
-
- <dt><code><var>rotationtime</var></code></dt>
-
- <dd>╖╬▒╫╞─└╧└╗ ╝°╚»╟╥ ├╩┤▄└º ╜├░ú.</dd>
-
- <dt><code><var>offset</var></code></dt>
-
- <dd>UTC┐í╝¡ ║╨┤▄└º ╜├░ú┬≈└╠. ╗²╖½╟╧╕Θ 0└╕╖╬ ░í┴ñ╟╧┐⌐ UTC╕ª
- ╗τ┐δ╟╤┤┘. ┐╣╕ª ╡Θ╛ε, UTC -5 ╜├░ú┤δ└╟ ┴÷┐¬╜├░ú└╗ ╗τ┐δ╟╤┤┘╕Θ
- ╛╞▒╘╕╒╞«╖╬ <code>-300</code>└╗ ┴÷┴ñ╟╤┤┘.</dd>
-
- <dt><code><var>filesize</var>M</code></dt>
-
- <dd>╜├░ú└╠ ╛╞┤╤ ┼⌐▒Γ╕ª ┴÷┴ñ╟╥╢º ╕▐░í╣┘└╠╞«┤▄└º ├╓┤δ ╞─└╧┼⌐▒Γ
- ╡┌┐í <code>M</code>└╗ ║┘└╬┤┘. rotationtime░· offset ┤δ╜┼ └╠
- ╞─╢≤╣╠┼═╕ª ╗τ┐δ╟╤┤┘.</dd>
- </dl>
- </section>
-
- <section id="portability"><title>╞≈╞├░í┤╔╝║</title>
-
- <p>┤┘└╜ ╖╬▒╫╞─└╧ ╟ⁿ╜─╣«└┌┐¡ ╟Ñ╟÷└║ ╕≡╡τ <code>strftime(3)</code>
- ▒╕╟÷└╠ ┴÷┐°╟╪╛▀ ╟╤┤┘. ╢≤└╠║Ω╖»╕« ╞»└»└╟ ╚«└σ└║
- <code>strftime(3)</code> manpage╕ª ┬ⁿ░φ╟╧╢≤.</p>
-
- <table border="1" style="zebra">
- <tr><td><code>%A</code></td><td>(┴÷┐¬╚¡╡╚) ┐╧└ⁿ╟╤ ┐Σ└╧ └╠╕º</td></tr>
- <tr><td><code>%a</code></td><td>(┴÷┐¬╚¡╡╚) 3-╣«└┌ ┐Σ└╧ └╠╕º</td></tr>
- <tr><td><code>%B</code></td><td>(┴÷┐¬╚¡╡╚) ┐╧└ⁿ╟╤ ┤▐ └╠╕º</td></tr>
- <tr><td><code>%b</code></td><td>(┴÷┐¬╚¡╡╚) 3-╣«└┌ ┤▐ └╠╕º</td></tr>
- <tr><td><code>%c</code></td><td>(┴÷┐¬╚¡╡╚) │»┬Ñ┐═ ╜├░ú</td></tr>
- <tr><td><code>%d</code></td><td>2-└┌╕« └╧</td></tr>
- <tr><td><code>%H</code></td><td>2-└┌╕« ╜├░ú (24 ╜├░ú ╜├░Φ)</td></tr>
- <tr><td><code>%I</code></td><td>2-└┌╕« ╜├░ú (12 ╜├░ú ╜├░Φ)</td></tr>
- <tr><td><code>%j</code></td><td>3-└┌╕« │»┬Ñ╝÷</td></tr>
- <tr><td><code>%M</code></td><td>2-└┌╕« ║╨</td></tr>
- <tr><td><code>%m</code></td><td>2-└┌╕« ┤▐</td></tr>
- <tr><td><code>%p</code></td><td>(┴÷┐¬╚¡╡╚) 12 ╜├░ú ╜├░Φ└╟ am/pm</td></tr>
- <tr><td><code>%S</code></td><td>2-└┌╕« ├╩</td></tr>
- <tr><td><code>%U</code></td><td>2-└┌╕« ┴╓└╧╝÷ (┴╓└╟ ├╣╣°└τ │»└║
- └╧┐Σ└╧)</td></tr>
- <tr><td><code>%W</code></td><td>2-└┌╕« ┴╓└╧╝÷ (┴╓└╟ ├╣╣°└τ │»└║
- ┐∙┐Σ└╧)</td></tr>
- <tr><td><code>%w</code></td><td>1-└┌╕« ┐Σ└╧╝÷ (┴╓└╟ ├╣╣°┬░ │»└║
- └╧┐Σ└╧)</td></tr>
- <tr><td><code>%X</code></td><td>(┴÷┐¬╚¡╡╚) ╜├░ú</td></tr>
- <tr><td><code>%x</code></td><td>(┴÷┐¬╚¡╡╚) │»┬Ñ</td></tr>
- <tr><td><code>%Y</code></td><td>4-└┌╕« ┐¼╡╡</td></tr>
- <tr><td><code>%y</code></td><td>2-└┌╕« ┐¼╡╡</td></tr>
- <tr><td><code>%Z</code></td><td>╜├░ú┤δ └╠╕º</td></tr>
- <tr><td><code>%%</code></td><td>╣«└┌▒╫┤δ╖╬ `%'</td></tr>
- </table>
-
- </section>
- </manualpage>
-